package demo;

interface IShape{
    int a = 10;//public static final
    public int b = 20;
    public final int c = 40;
    /*public abstract void draw();*/
    default public void func(){
        System.out.println("默认方法！");
    }
    public static void func2(){
        System.out.println("静态方法！");
    }
}
class A implements IShape{
      /* public void draw(){
        System.out.println("必须重写");
       }*/

    @Override
    public void func() {
        System.out.println("这个方法的重写 是可以选择的");
    }

    public static void main(String[] args) {
       IShape shape = new A();
        shape.func();
    }

}
public class Test {

}
